<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>cpdown options</title>
    <meta name="manifest.type" content="browser_action" />
    <link rel="stylesheet" href="~/assets/tailwind.css" />
    <script>
      function applyTheme() {
        if (
          window.matchMedia &&
          window.matchMedia("(prefers-color-scheme: dark)").matches
        ) {
          document.body.classList.add("dark");
        } else {
          document.body.classList.remove("dark");
        }
      }

      document.addEventListener("DOMContentLoaded", applyTheme);

      window
        .matchMedia("(prefers-color-scheme: dark)")
        .addEventListener("change", applyTheme);
    </script>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="./main.tsx"></script>
  </body>
</html>
